<div class="container">
    <div class="row">
        <div class="col-md-8">
            <ol class="breadcrumb">
                <li><a href="<?= Yii::$app->homeUrl; ?>">首页</a></li>
                <li>文章列表</li>
            </ol>
            <?= \yii\widgets\ListView::widget([
                    "id" => "postList",
                    'dataProvider' => $dataProvider,
                    'itemView' => "_listview",
                    'layout' => '{items}{pager}',
                    'pager' => [
                            'maxButtonCount' => 10,
                            'nextPageLabel' => Yii::t('app', '下一页'),
                            'prevPageLabel' => Yii::t('app', '上一页'),
                    ],
            ])

            ?>
        </div>
        <div class="col-md-4">
            <div class="searchbox">
                <ul class="list-group">
                    <li class="list-group-item">
                        <span class="glyphicon glyphicon-search" aria-hidden="true"></span> 查找文章
                    </li>
                    <li class="list-group-item">
                        <form action="<?= \yii\helpers\Url::to(['post/index'])?>" class="form-inline" id="w0" method="get">
                            <div class="form-group">
                                <input type="text" class="form-control" id="w0input" name="PostSearch[title]" placeholder="按标题">

                            </div>
                            <div class="form-group">
                                <button type="submit" class="btn btn-default">搜索</button>
                            </div>
                        </form>
                    </li>
                </ul>
            </div>

            <div class="tagcloudbox">
                <ul class="list-group">
                    <li class="list-group-item">
                        <span class="glyphicon glyphicon-search" aria-hidden="true"></span> 标签云
                    </li>
                    <li class="list-group-item">
                        <?= \frontend\components\TagsCloudWidget::widget(['tags' => $tags])?>
                    </li>
                </ul>
            </div>

            <div class="commentbox">
                <ul class="list-group">
                    <li class="list-group-item">
                        <span class="glyphicon glyphicon-search" aria-hidden="true"></span> 最新评论
                    </li>
                    <li class="list-group-item">
                        <?= \frontend\components\RctReplyWidget::widget(['recentComments' => $recentComments])?>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
